package com.atguigu.eduservice.client;

import com.atguigu.commonutils.R;
import com.atguigu.commonutils.UcenterMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @author 25169
 */
@FeignClient("service-ucenter")
@Component
public interface UcenterClient {

    @GetMapping("/educenter/ucentermember/getInfo")
    UcenterMember getInfo(@RequestParam String id);

    @PostMapping("getInfos/{id}")
     Map<String,Object> getInfos(@PathVariable String id);
}
